![]() |
| Object State Object state - an object consists of some private memory that holds its state; the private memory is made up of the values for a collection of instance variables. The following issues are important in considering an objects state:
The state of an object can be hidden or can be accessible
for all other objects. Encapsulation is the magic word for
hiding state. For more information see section about Encapsulation.
![]() If the state is represented by attributes, they can have primitive type (character, integer, float, ...). Further we have to distinguish single-valued attributes and multi-valued attributes. Multi-valued attributes have something like a set, a list, a bag of other objects or literals (values) as their value while single valued attributes have only one instance of an object - or one value in systems where not everything is an object - as value.
Now go on to ...
|